package com.jymj.entity.landmanage;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jymj.common.validator.group.AddGroup;
import com.jymj.enumEntity.IsTrueEnum;
import com.jymj.enumEntity.envior.*;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class PjEnviorSupvsEntity implements Serializable {

    private  Integer id;
    private  String questions;//问题情况
    private  String remark;//记录备注
    @NotBlank(message="记录人不能为空", groups = AddGroup.class)
    private  String jlr;//记录人
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private  Date jltime;//记录时间
    private  Integer enpsn;//记录人id
    private  Integer qutype;//问题状态 1巡查,考核  2下发 3整改  4待审核  5销账
    private  String qutypeText;
    @NotBlank(message="位置不能为空", groups = AddGroup.class)
    private  String location;//位置（定位）
    private  String ksname;//处理人姓名
    private  String kstel;//处理人电话
    private  String cgname;//验收人姓名
    private  String cgtel;	//验收人电话
    private  String jlrtel;//记录人电话
    private  String wz;//位置（行政区名称等）
    private  String ksbz;//处理备注
    private  String cgbz;//验收备注
    private  String zgyq;//整改要求
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private  Date qxtime;//期限范围--整改期限
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private  Date kstime;//处理时间  整改时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private  Date cgtime;//验收时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private  Date endtime;//完结时间
    private  String cgpj;//验收评价
    private  String kscf;//处理处罚
    private Integer warning;//预警 0 正常 1超期
    private String xzqmc;
    private String code;
    private String zhen;
    private List<PjEnviorFileEntity> pjEnviorFileEntities;
    private Integer[] fileIds;
    private Integer cnw;//是否村内外
    private String cnwText;
    private Integer gddw;//是否固定点位
    private String gddwText;
    private Integer zdwt;//是否重大问题
    private String zdwtText;
    private Integer hjzzyjfl;//环境整治一级分类
    private String hjzzyjflText;
    private Integer hjzzej;//环境整治二级分类
    private String hjzzejText;
    private Integer hjzzsj;//环境整治三级分类
    private String hjzzsjText;
    private Integer counts;//驳回次数
    private Integer jsry;//接收人员
    private String xfjy;//下发建议
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date xfsj;//下发时间   处理
    private List<PjEnviorRejectedEntity> enviorRejectedEntities;
    private Integer monwarnin;//挂账预警 0 正常 1超期
    private BigDecimal X;
    private BigDecimal Y;
    private Integer[] hjzzfls;
    //收藏
    private Integer favorite;
    private String comment;
    private Integer zjwj;//直接完结 1
    private Integer gddwid;//固定点位id
    private String rejectBz;//处理备注 5-4
    private String rejectYj;//驳回意见 5-4
    private String path;//图片对应目录
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;
    private String bh;
    private Boolean sqbh;//市区驳回展示
    private Integer counts3;//镇到区的统计次数
    private String month;

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public String getMonth() {
        return month;
    }

    public void setMonth(String month) {
        this.month = month;
    }

    public Integer getCounts3() {
        return counts3;
    }

    public void setCounts3(Integer counts3) {
        this.counts3 = counts3;
    }

    public Boolean getSqbh() {
        return sqbh;
    }

    public void setSqbh(Boolean sqbh) {
        this.sqbh = sqbh;
    }

    public Long getNo() {
        return no;
    }

    public void setNo(Long no) {
        this.no = no;
    }

    private Long no;

    public String getBh() {
        return bh;
    }

    public void setBh(String bh) {
        this.bh = bh;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getCounts2() {
        return counts2;
    }

    public void setCounts2(Integer counts2) {
        this.counts2 = counts2;
    }

    private Integer counts2;//5-4 驳回次数
    public String getRejectBz() {
        return rejectBz;
    }

    public void setRejectBz(String rejectBz) {
        this.rejectBz = rejectBz;
    }

    public String getRejectYj() {
        return rejectYj;
    }

    public void setRejectYj(String rejectYj) {
        this.rejectYj = rejectYj;
    }



    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Integer getZjwj() {
        return zjwj;
    }

    public void setZjwj(Integer zjwj) {
        this.zjwj = zjwj;
    }

    public Integer getGddwid() {
        return gddwid;
    }

    public void setGddwid(Integer gddwid) {
        this.gddwid = gddwid;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public void setFavorite(Integer favorite) {
        this.favorite = favorite;
    }

    public Integer getFavorite() {
        return favorite;
    }

    public String getZhen() {
        return zhen;
    }

    public void setZhen(String zhen) {
        this.zhen = zhen;
    }

    public Integer[] getHjzzfls() {
        return hjzzfls;
    }

    public void setHjzzfls(Integer[] hjzzfls) {
        this.hjzzfls = hjzzfls;
    }

    public BigDecimal getX() {
        return X;
    }

    public void setX(BigDecimal x) {
        X = x;
    }

    public BigDecimal getY() {
        return Y;
    }

    public void setY(BigDecimal y) {
        Y = y;
    }

    public String getXzqmc() {
        return xzqmc;
    }

    public Integer getHjzzej() {
        return hjzzej;
    }

    public void setHjzzej(Integer hjzzej) {
        this.hjzzej = hjzzej;
    }

    public Integer getHjzzsj() {
        return hjzzsj;
    }

    public void setHjzzsj(Integer hjzzsj) {
        this.hjzzsj = hjzzsj;
    }

    public Integer getMonwarnin() {
        return monwarnin;
    }

    public void setMonwarnin(Integer monwarnin) {
        this.monwarnin = monwarnin;
    }

    public List<PjEnviorRejectedEntity> getEnviorRejectedEntities() {
        return enviorRejectedEntities;
    }

    public void setEnviorRejectedEntities(List<PjEnviorRejectedEntity> enviorRejectedEntities) {
        this.enviorRejectedEntities = enviorRejectedEntities;
    }

    public Integer getJsry() {
        return jsry;
    }

    public void setJsry(Integer jsry) {
        this.jsry = jsry;
    }

    public String getXfjy() {
        return xfjy;
    }

    public void setXfjy(String xfjy) {
        this.xfjy = xfjy;
    }

    public Date getXfsj() {
        return xfsj;
    }

    public void setXfsj(Date xfsj) {
        this.xfsj = xfsj;
    }

    public Integer getCounts() {
        return counts;
    }

    public void setCounts(Integer counts) {
        this.counts = counts;
    }

    private String getZdwtText(){
        if (getZdwt() != null){
            return IsTrueEnum.getName(getZdwt());
        }
        return null;
    }

    private String getGddwText(){
        if (getGddw() != null){
            return IsTrueEnum.getName(getGddw());
        }
        return null;
    }

    private String getCnwText(){
        if (getCnw() != null){
            return CnwEnum.getName(getCnw());
        }
        return null;
    }


    public String getHjzzyjflText(){
        if (getHjzzyjfl() != null){
            return HjzzflEnum.getName(getHjzzyjfl());
        }
        return null;
    }

    public String getHjzzejText(){
        if (getHjzzej() != null){
            return HjzzejEnum.getName(getHjzzej());
        }
        return null;
    }

    public String getHjzzsjText(){
        if (getHjzzsj() != null){
            return HjzzsjEnum.getName(getHjzzsj());
        }
        return null;
    }

    public Integer getHjzzyjfl() {
        return hjzzyjfl;
    }

    public void setHjzzyjfl(Integer hjzzyjfl) {
        this.hjzzyjfl = hjzzyjfl;
    }

    public Integer getCnw() {
        return cnw;
    }

    public void setCnw(Integer cnw) {
        this.cnw = cnw;
    }

    public Integer getGddw() {
        return gddw;
    }

    public void setGddw(Integer gddw) {
        this.gddw = gddw;
    }

    public Integer getZdwt() {
        return zdwt;
    }

    public void setZdwt(Integer zdwt) {
        this.zdwt = zdwt;
    }

    public void setXzqmc(String xzqmc) {
        this.xzqmc = xzqmc;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer[] getFileIds() {
        return fileIds;
    }

    public void setFileIds(Integer[] fileIds) {
        this.fileIds = fileIds;
    }

    public Integer getWarning() {
        return warning;
    }

    public void setWarning(Integer warning) {
        this.warning = warning;
    }

    public List<PjEnviorFileEntity> getPjEnviorFileEntities() {
        return pjEnviorFileEntities;
    }

    public void setPjEnviorFileEntities(List<PjEnviorFileEntity> pjEnviorFileEntities) {
        this.pjEnviorFileEntities = pjEnviorFileEntities;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getQuestions() {
        return questions;
    }

    public void setQuestions(String questions) {
        this.questions = questions;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getJlr() {
        return jlr;
    }

    public void setJlr(String jlr) {
        this.jlr = jlr;
    }

    public Date getJltime() {
        return jltime;
    }

    public void setJltime(Date jltime) {
        this.jltime = jltime;
    }

    public Integer getEnpsn() {
        return enpsn;
    }

    public void setEnpsn(Integer enpsn) {
        this.enpsn = enpsn;
    }

    public Integer getQutype() {
        return qutype;
    }

    public void setQutype(Integer qutype) {
        this.qutype = qutype;
    }

    public String getQutypeText() {
        if (getQutype() != null){
            return EnviorSupvsEnum.getName(getQutype());
        }
        return null;
    }


    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getKsname() {
        return ksname;
    }

    public void setKsname(String ksname) {
        this.ksname = ksname;
    }

    public String getKstel() {
        return kstel;
    }

    public void setKstel(String kstel) {
        this.kstel = kstel;
    }

    public String getCgname() {
        return cgname;
    }

    public void setCgname(String cgname) {
        this.cgname = cgname;
    }

    public String getCgtel() {
        return cgtel;
    }

    public void setCgtel(String cgtel) {
        this.cgtel = cgtel;
    }

    public String getJlrtel() {
        return jlrtel;
    }

    public void setJlrtel(String jlrtel) {
        this.jlrtel = jlrtel;
    }

    public String getWz() {
        return wz;
    }

    public void setWz(String wz) {
        this.wz = wz;
    }

    public String getKsbz() {
        return ksbz;
    }

    public void setKsbz(String ksbz) {
        this.ksbz = ksbz;
    }

    public String getCgbz() {
        return cgbz;
    }

    public void setCgbz(String cgbz) {
        this.cgbz = cgbz;
    }

    public String getZgyq() {
        return zgyq;
    }

    public void setZgyq(String zgyq) {
        this.zgyq = zgyq;
    }

    public Date getQxtime() {
        return qxtime;
    }

    public void setQxtime(Date qxtime) {
        this.qxtime = qxtime;
    }

    public Date getKstime() {
        return kstime;
    }

    public void setKstime(Date kstime) {
        this.kstime = kstime;
    }

    public Date getCgtime() {
        return cgtime;
    }

    public void setCgtime(Date cgtime) {
        this.cgtime = cgtime;
    }

    public String getCgpj() {
        return cgpj;
    }

    public void setCgpj(String cgpj) {
        this.cgpj = cgpj;
    }

    public String getKscf() {
        return kscf;
    }

    public void setKscf(String kscf) {
        this.kscf = kscf;
    }
}
